package com.banyuan.proxy;

/**
 * @author 陶继发
 * @version 1.8
 */
public class Agent implements Ticket{
    private TrainTicket trainTicket;

    public Agent() {
    }

    public Agent(TrainTicket trainTicket) {
        this.trainTicket = trainTicket;
    }

    @Override
    public void sellTicket() {
        trainTicket.sellTicket();
        System.out.println("加10块钱!");
    }

    @Override
    public void sellTrainTicket() {

    }

    @Override
    public void sellPlaneTicket() {

    }
}
